home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / be001.dxr / 00002_trevor.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  7.6 KB  |  204 lines

  1. on trevor
  2.   global timecheck
  3.   puppetSprite(8, 1)
  4.   if the timer > 500 then
  5.     set timecheck to 0
  6.   else
  7.     set direction to random(8)
  8.     repeat while the timer < 20
  9.       if direction = 1 then
  10.         set nom to the name of member the memberNum of sprite 8
  11.         if (nom = "t1nw") or "t2nw" or "t1e" or "t2e" or "t1s" or "t2s" or "t1w" or "t2w" or "t1ne" or "t2ne" or "t1se" or "t2se" or "t1sw" or "t2sw" then
  12.           set nom to "t1n"
  13.           set the memberNum of sprite 8 to the number of member nom
  14.         end if
  15.         repeat with n = random(5) down to 1
  16.           set the locV of sprite 8 to the locV of sprite 8 - 1
  17.           if nom = "t1n" then
  18.             set nom to "t2n"
  19.           else
  20.             if nom = "t2n" then
  21.               set nom to "t1n"
  22.             end if
  23.           end if
  24.           set the memberNum of sprite 8 to the number of member nom
  25.           updateStage()
  26.           if the locV of sprite 8 <= 45 then
  27.             set the locV of sprite 8 to 432
  28.           end if
  29.         end repeat
  30.       end if
  31.       if direction = 3 then
  32.         set nom to the name of member the memberNum of sprite 8
  33.         if (nom = "t1nw") or "t2nw" or "t1n" or "t2n" or "t1s" or "t2s" or "t1w" or "t2w" or "t1ne" or "t2ne" or "t1se" or "t2se" or "t1sw" or "t2sw" then
  34.           set nom to "t1e"
  35.           set the memberNum of sprite 8 to the number of member nom
  36.         end if
  37.         repeat with n = random(5) down to 1
  38.           set the locH of sprite 8 to the locH of sprite 8 + 1
  39.           if nom = "t1e" then
  40.             set nom to "t2e"
  41.           else
  42.             if nom = "t2e" then
  43.               set nom to "t1e"
  44.             end if
  45.           end if
  46.           set the memberNum of sprite 8 to the number of member nom
  47.           updateStage()
  48.           if the locH of sprite 8 >= 597 then
  49.             set the locH of sprite 8 to 321
  50.           end if
  51.         end repeat
  52.       end if
  53.       if direction = 5 then
  54.         set nom to the name of member the memberNum of sprite 8
  55.         if (nom = "t1nw") or "t2nw" or "t1n" or "t2n" or "t1e" or "t2e" or "t1w" or "t2w" or "t1ne" or "t2ne" or "t1se" or "t2se" or "t1sw" or "t2sw" then
  56.           set nom to "t1s"
  57.           set the memberNum of sprite 8 to the number of member nom
  58.         end if
  59.         repeat with n = random(5) down to 1
  60.           set the locV of sprite 8 to the locV of sprite 8 + 1
  61.           if nom = "t1s" then
  62.             set nom to "t2s"
  63.           else
  64.             if nom = "t2s" then
  65.               set nom to "t1s"
  66.             end if
  67.           end if
  68.           set the memberNum of sprite 8 to the number of member nom
  69.           updateStage()
  70.           if the locV of sprite 8 >= 432 then
  71.             set the locV of sprite 8 to 45
  72.           end if
  73.         end repeat
  74.       end if
  75.       if direction = 7 then
  76.         set nom to the name of member the memberNum of sprite 8
  77.         if (nom = "t1nw") or "t2nw" or "t1n" or "t2n" or "t1e" or "t2e" or "t1s" or "t2s" or "t1ne" or "t2ne" or "t1se" or "t2se" or "t1sw" or "t2sw" then
  78.           set nom to "t1w"
  79.           set the memberNum of sprite 8 to the number of member nom
  80.         end if
  81.         repeat with n = random(5) down to 1
  82.           set the locH of sprite 8 to the locH of sprite 8 - 1
  83.           if nom = "t1w" then
  84.             set nom to "t2w"
  85.           else
  86.             if nom = "t2w" then
  87.               set nom to "t1w"
  88.             end if
  89.           end if
  90.           set the memberNum of sprite 8 to the number of member nom
  91.           updateStage()
  92.           if the locH of sprite 8 <= 321 then
  93.             set the locH of sprite 8 to 597
  94.           end if
  95.         end repeat
  96.       end if
  97.       if direction = 2 then
  98.         set nom to the name of member the memberNum of sprite 8
  99.         if (nom = "t1nw") or "t2nw" or "t1n" or "t2n" or "t1e" or "t2e" or "t1s" or "t2s" or "t1w" or "t2w" or "t1se" or "t2se" or "t1sw" or "t2sw" then
  100.           set nom to "t1ne"
  101.           set the memberNum of sprite 8 to the number of member nom
  102.         end if
  103.         repeat with n = random(5) down to 1
  104.           set the locV of sprite 8 to the locV of sprite 8 - 1
  105.           set the locH of sprite 8 to the locH of sprite 8 + 1
  106.           if nom = "t1ne" then
  107.             set nom to "t2ne"
  108.           else
  109.             if nom = "t2ne" then
  110.               set nom to "t1ne"
  111.             end if
  112.           end if
  113.           set the memberNum of sprite 8 to the number of member nom
  114.           updateStage()
  115.           if the locH of sprite 8 >= 597 then
  116.             set the locH of sprite 8 to 321
  117.           end if
  118.           if the locV of sprite 8 <= 45 then
  119.             set the locV of sprite 8 to 432
  120.           end if
  121.         end repeat
  122.       end if
  123.       if direction = 4 then
  124.         set nom to the name of member the memberNum of sprite 8
  125.         if (nom = "t1nw") or "t2nw" or "t1n" or "t2n" or "t1e" or "t2e" or "t1s" or "t2s" or "t1w" or "t2w" or "t1ne" or "t2ne" or "t1sw" or "t2sw" then
  126.           set nom to "t1se"
  127.           set the memberNum of sprite 8 to the number of member nom
  128.         end if
  129.         repeat with n = random(5) down to 1
  130.           set the locV of sprite 8 to the locV of sprite 8 + 1
  131.           set the locH of sprite 8 to the locH of sprite 8 + 1
  132.           if nom = "t1se" then
  133.             set nom to "t2se"
  134.           else
  135.             if nom = "t2se" then
  136.               set nom to "t1se"
  137.             end if
  138.           end if
  139.           set the memberNum of sprite 8 to the number of member nom
  140.           updateStage()
  141.           if the locH of sprite 8 >= 597 then
  142.             set the locH of sprite 8 to 321
  143.           end if
  144.           if the locV of sprite 8 >= 432 then
  145.             set the locV of sprite 8 to 45
  146.           end if
  147.         end repeat
  148.       end if
  149.       if direction = 6 then
  150.         set nom to the name of member the memberNum of sprite 8
  151.         if (nom = "t1nw") or "t2nw" or "t1n" or "t2n" or "t1e" or "t2e" or "t1s" or "t2s" or "t1w" or "t2w" or "t1ne" or "t2ne" or "t1se" or "t2se" then
  152.           set nom to "t1sw"
  153.           set the memberNum of sprite 8 to the number of member nom
  154.         end if
  155.         repeat with n = random(5) down to 1
  156.           set the locV of sprite 8 to the locV of sprite 8 + 1
  157.           set the locH of sprite 8 to the locH of sprite 8 - 1
  158.           if nom = "t1sw" then
  159.             set nom to "t2sw"
  160.           else
  161.             if nom = "t2sw" then
  162.               set nom to "t1sw"
  163.             end if
  164.           end if
  165.           set the memberNum of sprite 8 to the number of member nom
  166.           updateStage()
  167.           if the locH of sprite 8 <= 321 then
  168.             set the locH of sprite 8 to 597
  169.           end if
  170.           if the locV of sprite 8 >= 432 then
  171.             set the locV of sprite 8 to 45
  172.           end if
  173.         end repeat
  174.       end if
  175.       if direction = 8 then
  176.         set nom to the name of member the memberNum of sprite 8
  177.         if (nom = "t1sw") or "t2sw" or "t1n" or "t2n" or "t1e" or "t2e" or "t1s" or "t2s" or "t1w" or "t2w" or "t1ne" or "t2ne" or "t1se" or "t2se" then
  178.           set nom to "t1nw"
  179.           set the memberNum of sprite 8 to the number of member nom
  180.         end if
  181.         repeat with n = random(5) down to 1
  182.           set the locV of sprite 8 to the locV of sprite 8 - 1
  183.           set the locH of sprite 8 to the locH of sprite 8 - 1
  184.           if nom = "t1nw" then
  185.             set nom to "t2nw"
  186.           else
  187.             if nom = "t2nw" then
  188.               set nom to "t1nw"
  189.             end if
  190.           end if
  191.           set the memberNum of sprite 8 to the number of member nom
  192.           updateStage()
  193.           if the locH of sprite 8 <= 321 then
  194.             set the locH of sprite 8 to 597
  195.           end if
  196.           if the locV of sprite 8 <= 45 then
  197.             set the locV of sprite 8 to 432
  198.           end if
  199.         end repeat
  200.       end if
  201.     end repeat
  202.   end if
  203. end
  204.